<?php
declare(strict_types=1);

namespace App\Admin\Request\System\Notice;


use Newbie\NewbieFormRequest;

/**
 * 通知管理验证数据类 (Create)
 */
class SystemNoticeCreateRequest extends NewbieFormRequest {
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize (): bool {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules (): array {
        return [
            // 标题
            'title'   => 'require',

            // 公告类型
            'type'    => 'require',

            // 公告内容
            'content' => 'require',
        ];
    }
}